package com.spring.takeaway.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author LCD
 * @Date 2022/6/12 14:37
 **/
@Data
@TableName("food")
public class Food implements Serializable {


    @TableId("food_id")
    private Integer foodId;
    private String foodName;
    private BigDecimal foodPrice;
    private String foodImg;
    @TableField("food_merid")
    private Integer foodMer;  //外键

    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public BigDecimal getFoodPrice() {
        return foodPrice;
    }

    public void setFoodPrice(BigDecimal foodPrice) {
        this.foodPrice = foodPrice;
    }

    public String getFoodImg() {
        return foodImg;
    }

    public void setFoodImg(String foodImg) {
        this.foodImg = foodImg;
    }

    public Integer getFoodMer() {
        return foodMer;
    }

    public void setFoodMer(Integer foodMer) {
        this.foodMer = foodMer;
    }

    @Override
    public String toString() {
        return "Food{" +
                "foodId=" + foodId +
                ", foodName='" + foodName + '\'' +
                ", foodPrice=" + foodPrice +
                ", foodImg='" + foodImg + '\'' +
                ", foodMer=" + foodMer +
                '}';
    }
}
